import React from 'react'
import Main from './main'
import About from './../route1/about'
import Topics from './../route1/topics'
import Home from './Home'
import {HashRouter as Router,Route,Link} from 'react-router-dom'
export default class IRouter extends React.Component{
    render(){
        return(
            <Router>
                <Home>
                    <Route path="/main" render={()=>
                        <Main>
                            <Route path="/main/a" component={About}></Route>
                        </Main>
                    }></Route>
                    <Route path="/about" component={About}></Route>
                    <Route path="/topics" component={Topics}></Route>
                </Home>
            </Router>
        );
    }
}